package com.ykzb.user.mapper;

import com.ykzb.base.mapper.BaseMapper;
import com.ykzb.user.model.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository(value="userMapper")
public interface UserMapper extends BaseMapper<User, Long>
{
    User selectLoginUser(@Param("mobile")String userName, @Param("password")String password);

    Integer selectCountUserByMobile(@Param("mobile")String mobile);

    List<User> selectUserByMobile(@Param("mobile")String mobile) throws Exception;

}